<?php
namespace ImiApp\ApiServer\Validation;

use Imi\Bean\Annotation\Bean;

/**
 * @Bean("ContentValidation")
 */
class ContentValidation
{
    public function validate($content): bool
    {
        $list = [
            'abc',
            'xxx',
        ];
        foreach($list as $item)
        {
            if(false !== stripos($content, $item))
            {
                return false;
            }
        }
        return true;
    }

}
